package com.ruoyi.goods.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物件管理对象 tb_goods
 * 
 * @author ruoyi
 * @date 2025-08-01
 */
public class TbGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 物品id */
    private String id;

    /** 用户手机号码 */
    @Excel(name = "用户手机号码")
    private String phoneNumber;

    /** 当前物品入库位置 */
    @Excel(name = "当前物品入库位置")
    private String regionId;

    /** 1代表入库；2代表出库 */
    @Excel(name = "1代表入库；2代表出库")
    private Long state;

    /** 入库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inboundTime;

    /** 出库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date outboundTime;

    /** 存放时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "存放时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date storageTime;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setPhoneNumber(String phoneNumber) 
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() 
    {
        return phoneNumber;
    }

    public void setRegionId(String regionId) 
    {
        this.regionId = regionId;
    }

    public String getRegionId() 
    {
        return regionId;
    }

    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }

    public void setInboundTime(Date inboundTime) 
    {
        this.inboundTime = inboundTime;
    }

    public Date getInboundTime() 
    {
        return inboundTime;
    }

    public void setOutboundTime(Date outboundTime) 
    {
        this.outboundTime = outboundTime;
    }

    public Date getOutboundTime() 
    {
        return outboundTime;
    }

    public void setStorageTime(Date storageTime) 
    {
        this.storageTime = storageTime;
    }

    public Date getStorageTime() 
    {
        return storageTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("phoneNumber", getPhoneNumber())
            .append("regionId", getRegionId())
            .append("state", getState())
            .append("inboundTime", getInboundTime())
            .append("outboundTime", getOutboundTime())
            .append("storageTime", getStorageTime())
            .toString();
    }
}
